package com.ds.controller;

import com.ds.entity.TransferAccount;
import com.ds.response.ResponseResult;

import cn.hutool.json.JSONUtil;
import lombok.extern.slf4j.Slf4j;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 账户控制类
 *
 * @author huahu
 * @DATE 2025/5/4
 **/
@RestController
@Slf4j
public class AccountController {
    @RequestMapping("/account/transfer")
    public ResponseResult<String> transfer(@RequestBody TransferAccount request) {
        log.info("转账成功：{}", JSONUtil.toJsonStr(request));
        return ResponseResult.success("转账成功");
    }
}
